
use crate::{config::app_list::get_global_site_list_config, util::path_helper::create_dir_all};

pub fn make_site_directory_all() {
  let config_vec = get_global_site_list_config();
  config_vec.site_list.iter().for_each(|config| {
    config.site_base.write_site_info_file();
  });
}
  
pub fn make_cache_site_directory_all() {
  let config_vec = get_global_site_list_config();
  config_vec.site_list.iter().for_each(|config| {
    let cache_site_directory = config.site_base.get_cache_site_directory();
    create_dir_all(cache_site_directory.as_str());
  });
}
 